import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { ApSatelliteService } from './ap_satellite.service';
import { CreateApSatelliteDto } from './dto/create-ap_satellite.dto';
import { UpdateApSatelliteDto } from './dto/update-ap_satellite.dto';

@Controller('ap/satellite')
export class ApSatelliteController {
  constructor(private readonly apSatelliteService: ApSatelliteService) {}

  // 获取卫星数量
  @Post('/count')
  getSatelliteCount() {
    return this.apSatelliteService.getSatelliteCount();
  }

  // 获取卫星所在城市经纬度
  @Post('/city/lon_list')
  getSatelliteCityLonLat() {
    return this.apSatelliteService.getSatelliteCityLonLat();
  }
}
